package com.gxc.datacore.db.dialect;

import java.util.List;

import com.gxc.dbcore.dao.SqlDao;

public interface Dialect {

	/**
	 * 构建JdbcUrl
	 * 
	 * @param host
	 * @param port
	 * @param database
	 * @return
	 */
	public String buildJdbcURL(String host, String port, String database);

	/**
	 * 获取表信息
	 * 
	 * @param sqlDao
	 * @return List<Map>
	 */
	@SuppressWarnings("rawtypes")
	public List listTables(SqlDao sqlDao);

	/**
	 * 获取列信息
	 * 
	 * @param sqlDao
	 * @param schema_name
	 * @param table_name
	 * @return List<Map>
	 */
	@SuppressWarnings("rawtypes")
	public List listColumns(SqlDao sqlDao, String schema_name, String table_name);

}
